package com.uneed.data;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import java.util.Date;

public class UserProfile implements Parcelable {
  public static final Parcelable.Creator<UserProfile> CREATOR;
  private String avatar;
  private int badgeCount;
  private int checkinCount;
  private int cityId;
  private int couponCount;
  private String email;
  private int fansCount;
  private int favoCount;
  private int feedFlag;
  private int honeyCount;
  private int uid;
  private boolean isFans;
  private boolean isHoney;
  private boolean isInvited;
  private int level;
  private int mayorCount;
  private String nickName;
  private int photoCount;
  private int reviewCount;
  private int score;
  private long time;
  private String token;
  private int userPower;

  static
  {
    CREATOR = new Parcelable.Creator()
    {
      public UserProfile createFromParcel(Parcel paramParcel)
      {
        return new UserProfile(paramParcel);
      }

      public UserProfile[] newArray(int paramInt)
      {
        return new UserProfile[paramInt];
      }
    };
  }

  private UserProfile()
  {
  }

  public UserProfile(int uid, String nickName)
  {
    this.uid = uid;
    this.nickName = nickName;
  }
  
  public UserProfile(int paramInt1, String paramString1, String paramString2, int paramInt2, int paramInt3, boolean paramBoolean1, boolean paramBoolean2, String paramString3, long paramLong)
  {
    this.uid = paramInt1;
    this.nickName = paramString1;
    this.avatar = paramString2;
    this.userPower = paramInt2;
    this.cityId = paramInt3;
    this.isHoney = paramBoolean1;
    this.isInvited = paramBoolean2;
    this.token = paramString3;
    this.time = paramLong;
  }

  public UserProfile(int paramInt1, String paramString1, String paramString2, int paramInt2, int paramInt3, boolean paramBoolean1, boolean paramBoolean2, String paramString3, long paramLong, int paramInt4, int paramInt5, int paramInt6, int paramInt7, int paramInt8, int paramInt9)
  {
    this.uid = paramInt1;
    this.nickName = paramString1;
    this.avatar = paramString2;
    this.userPower = paramInt2;
    this.cityId = paramInt3;
    this.isHoney = paramBoolean1;
    this.isInvited = paramBoolean2;
    this.token = paramString3;
    this.time = paramLong;
    this.level = paramInt4;
    this.score = paramInt5;
    this.checkinCount = paramInt6;
    this.badgeCount = paramInt7;
    this.honeyCount = paramInt8;
    this.feedFlag = paramInt9;
  }

  public UserProfile(int paramInt1, String paramString1, String paramString2, int paramInt2, int paramInt3, boolean paramBoolean1, boolean paramBoolean2, String paramString3, long paramLong, int paramInt4, int paramInt5, int paramInt6, int paramInt7, int paramInt8, int paramInt9, int paramInt10)
  {
    this.uid = paramInt1;
    this.nickName = paramString1;
    this.avatar = paramString2;
    this.userPower = paramInt2;
    this.cityId = paramInt3;
    this.isHoney = paramBoolean1;
    this.isInvited = paramBoolean2;
    this.token = paramString3;
    this.time = paramLong;
    this.level = paramInt4;
    this.score = paramInt5;
    this.checkinCount = paramInt6;
    this.badgeCount = paramInt7;
    this.honeyCount = paramInt8;
    this.feedFlag = paramInt9;
    this.mayorCount = paramInt10;
  }

  public UserProfile(int paramInt1, String paramString1, String paramString2, int paramInt2, int paramInt3, boolean paramBoolean1, boolean paramBoolean2, String paramString3, long paramLong, int paramInt4, int paramInt5, int paramInt6, int paramInt7, int paramInt8, int paramInt9, int paramInt10, int paramInt11)
  {
    this.uid = paramInt1;
    this.nickName = paramString1;
    this.avatar = paramString2;
    this.userPower = paramInt2;
    this.cityId = paramInt3;
    this.isHoney = paramBoolean1;
    this.isFans = paramBoolean2;
    this.token = paramString3;
    this.time = paramLong;
    this.level = paramInt4;
    this.score = paramInt5;
    this.checkinCount = paramInt6;
    this.badgeCount = paramInt7;
    this.honeyCount = paramInt8;
    this.fansCount = paramInt9;
    this.feedFlag = paramInt11;
    this.mayorCount = paramInt10;
  }

  public UserProfile(int paramInt1, String paramString1, String paramString2, int paramInt2, int paramInt3, boolean paramBoolean1, boolean paramBoolean2, String paramString3, long paramLong, int paramInt4, int paramInt5, int paramInt6, int paramInt7, int paramInt8, int paramInt9, int paramInt10, int paramInt11, int paramInt12, int paramInt13, int paramInt14)
  {
    this.uid = paramInt1;
    this.nickName = paramString1;
    this.avatar = paramString2;
    this.userPower = paramInt2;
    this.cityId = paramInt3;
    this.isHoney = paramBoolean1;
    this.isFans = paramBoolean2;
    this.token = paramString3;
    this.time = paramLong;
    this.level = paramInt4;
    this.score = paramInt5;
    this.checkinCount = paramInt6;
    this.badgeCount = paramInt7;
    this.honeyCount = paramInt8;
    this.fansCount = paramInt9;
    this.feedFlag = paramInt11;
    this.mayorCount = paramInt10;
    this.favoCount = paramInt12;
    this.reviewCount = paramInt13;
    this.photoCount = paramInt14;
  }

  private UserProfile(Parcel paramParcel)
  {
    this.uid = paramParcel.readInt();
    this.nickName = paramParcel.readString();
    this.avatar = paramParcel.readString();
    this.userPower = paramParcel.readInt();
    this.cityId = paramParcel.readInt();
    int j;
/*    label56: int k;
    if (paramParcel.readInt() == i)
    {
      j = i;
      this.isHoney = j;
      if (paramParcel.readInt() != i)
        break label217;
      k = i;
      label72: this.isFans = k;
      if (paramParcel.readInt() != i)
        break label223;
    }
*/    while (true)
    {
//      this.isInvited = i;
      this.token = paramParcel.readString();
      this.time = paramParcel.readLong();
      this.level = paramParcel.readInt();
      this.score = paramParcel.readInt();
      this.checkinCount = paramParcel.readInt();
      this.badgeCount = paramParcel.readInt();
      this.honeyCount = paramParcel.readInt();
      this.fansCount = paramParcel.readInt();
      this.feedFlag = paramParcel.readInt();
      this.mayorCount = paramParcel.readInt();
      this.email = paramParcel.readString();
      this.favoCount = paramParcel.readInt();
      this.reviewCount = paramParcel.readInt();
      this.photoCount = paramParcel.readInt();
      this.couponCount = paramParcel.readInt();
      return;
//      j = 0;
//      break label56:
//      label217: k = 0;
//      break label72:
//      label223: i = 0;
    }
  }

  public String avatar()
  {
    return this.avatar;
  }

  public String avatarBig()
  {
    if ((this.avatar != null) && (this.avatar.endsWith("_s.jpg")))
      this.avatar = (this.avatar.substring(0, -6 + this.avatar.length()) + "_b.jpg");
    return this.avatar;
  }

  public int badgeCount()
  {
    return this.badgeCount;
  }

  public int checkinCount()
  {
    return this.checkinCount;
  }

  public int cityId()
  {
    return this.cityId;
  }

  public int couponCount()
  {
    return this.couponCount;
  }

  public int describeContents()
  {
    return 0;
  }

  public String email()
  {
    return this.email;
  }

  public boolean equals(Object paramObject)
  {
    if ((paramObject != this) && ((!(paramObject instanceof UserProfile) || (((UserProfile)paramObject).uid != this.uid))))
    	return false;
    else 
    	return true;
  }

  public int fansCount()
  {
    return this.fansCount;
  }

  public int favoCount()
  {
    return this.favoCount;
  }

  public int feedFlag()
  {
    return this.feedFlag;
  }

  public int hashCode()
  {
    return this.uid;
  }

  public int honeyCount()
  {
    return this.honeyCount;
  }

  public int uid()
  {
    return this.uid;
  }

  public boolean isFans()
  {
    return this.isFans;
  }

  public boolean isHoney()
  {
    return this.isHoney;
  }

  public boolean isInvited()
  {
    return this.isInvited;
  }

  public int level()
  {
    return this.level;
  }

  public int mayorCount()
  {
    return this.mayorCount;
  }

  public String nickName()
  {
    return this.nickName;
  }

  public int photoCount()
  {
    return this.photoCount;
  }

  public int reviewCount()
  {
    return this.reviewCount;
  }

  public int score()
  {
    return this.score;
  }

  public void setCouponCount(int paramInt)
  {
    this.couponCount = paramInt;
  }

  public void setEmail(String paramString)
  {
    this.email = paramString;
  }

  public Date time()
  {
    return new Date(this.time);
  }

  public String toString()
  {
    return this.uid + " : " + this.nickName;
  }

  public String token()
  {
    return this.token;
  }

  public int userPower()
  {
    return this.userPower;
  }

  public void writeToParcel(Parcel paramParcel, int paramInt)
  {
    int i = 1;
    paramParcel.writeInt(this.uid);
    paramParcel.writeString(this.nickName);
    paramParcel.writeString(this.avatar);
    paramParcel.writeInt(this.userPower);
    paramParcel.writeInt(this.cityId);
    int j;
    int k;
/*    if (this.isHoney)
    {
      j = i;
      paramParcel.writeInt(j);
      if (!this.isFans)
        break label213;
      k = i;
      label68: paramParcel.writeInt(k);
      if (!this.isInvited)
        break label219;
    }
*/    while (true)
    {
      paramParcel.writeInt(i);
      paramParcel.writeString(this.token);
      paramParcel.writeLong(this.time);
      paramParcel.writeInt(this.level);
      paramParcel.writeInt(this.score);
      paramParcel.writeInt(this.checkinCount);
      paramParcel.writeInt(this.badgeCount);
      paramParcel.writeInt(this.honeyCount);
      paramParcel.writeInt(this.fansCount);
      paramParcel.writeInt(this.feedFlag);
      paramParcel.writeInt(this.mayorCount);
      paramParcel.writeString(this.email);
      paramParcel.writeInt(this.favoCount);
      paramParcel.writeInt(this.reviewCount);
      paramParcel.writeInt(this.photoCount);
      paramParcel.writeInt(this.couponCount);
      return;
//      j = 0;
//      break label52:
//      label213: k = 0;
//      break label68:
//      label219: i = 0;
    }
  }
}
